﻿using Microsoft.AspNetCore.Builder;

namespace WT.OpenIddict.Domain.Services.Exceptions;

public static class UnifiedExceptionMiddlewareExtensions
{
    public static IApplicationBuilder UseUnifiedExceptionHandler(this IApplicationBuilder builder)
    {
        return builder.UseMiddleware<UnifiedExceptionMiddleware>();
    }
}